<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language = "JavaScript">
    function validate() {
        var url = document.getElementById("URL").value;
        var pattern = /(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
        if(url.length==0){
		      alert("Please enter the URL");
		 			return false;
		}
        if(!isNaN(url)){
			  alert("Please enter alpha-numeric data");
			  return false;
		}
        if (pattern.test(url)) {
            alert("Url is valid");
            return true;
        } 
            alert("Url is not valid!");
            return false;

    }
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Website Profile Analyser</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"/>
<link href="windows_phone_style.css" rel="stylesheet" type="text/css" media=" screen and (max-device width:480px)"/>
</head>

<body>
<h2 class="head">WebSite Profile Analyzer</h2>
<div class="content">
<p>Please enter the URL to be profiled </p>
</div>
<div>
<p>&nbsp;</p>
<p>&nbsp;</p>

<form action="">
   <label>&nbsp;</label>
	<label for="name">URL: </label> <input type="text" id="URL" class="input" />
    <p>&nbsp;</p>
    <label>&nbsp;</label>   <label>&nbsp;</label>
    <input type="submit" value="Submit" class="button"  onclick = "return validate();"/>
    <input type="submit" value="Reset" class="button" onclick="document.getElementById("URL").focus();"/>
</form>
</div>
<div class="footer">
    <div class="clear"></div>
    <p>Design By Team 04 </p>
</div>
</body>
</html>
